<?php
/**
 * Created by PhpStorm.
 * User: Knight
 * Date: 2019/1/16
 * Time: 10:25
 */

namespace app\test\controller;


use app\api\util\JwtUtil;

class Jwtjudge
{
    public function decode(){
        $token=request()->post('token');
        $tokenarr = JwtUtil::jwtDecode($token);
        $unionid = $tokenarr->{'unionid'};
        echo $unionid;

    }
}